﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    [Serializable]
    [MappingTable("ProjectEmployeeMappingView")]
    public partial class ProjectEmployeeMappingInfoView : ProjectEmployeeMappingInfo
    {
    }

    /// <summary>
    /// ProjectEmployeeMapping:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("ProjectEmployeeMapping")]
    public partial class ProjectEmployeeMappingInfo
    {
        public ProjectEmployeeMappingInfo()
        {
        }

        #region Model

        private int _id;
        private string _projectid;
        private string _employeeid;
        private string _username;
        private string _userrole;
        private string _userfield;
        private DateTime? _appointtime;
        private string _appintorganization;
        private DateTime? _removetime;
        private string _removeorganization;
        private string _isvalid;
        private DateTime _createtime = DateTime.Now;

        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("EmployeeId")]
        public string EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("UserName")]
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("UserRole")]
        public string UserRole
        {
            set { _userrole = value; }
            get { return _userrole; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("UserField")]
        public string UserField
        {
            set { _userfield = value; }
            get { return _userfield; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("AppointTime")]
        public DateTime? AppointTime
        {
            set { _appointtime = value; }
            get { return _appointtime; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("AppintOrganization")]
        public string AppintOrganization
        {
            set { _appintorganization = value; }
            get { return _appintorganization; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("RemoveTime")]
        public DateTime? RemoveTime
        {
            set { _removetime = value; }
            get { return _removetime; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("RemoveOrganization")]
        public string RemoveOrganization
        {
            set { _removeorganization = value; }
            get { return _removeorganization; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("IsValid")]
        public string IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("CreateTime")]
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 非本院人员备注
        /// </summary>
        [DataField("EmployeeAnnotations")]
        public string EmployeeAnnotations { get; set; }

        [DataField("InternalType")]
        public int InternalType { get; set; }

        #endregion Model

    }
}

